import gtk
import osso
import utils
from mainwindow import MainWindow
from ECO import ECO

class Application:
	def __init__(self, filename=""):
		self.eco = ECO(utils.locate_data_dir() + "eco.positions")
		
		context = osso.Context("chessmonk", "1.0")
		mime = osso.Mime(context)
		mime.set_mime_callback(self.test)
		
		mainwindow = MainWindow(self)	
		mainwindow.show_all()
			
		#if filename:
		#	gamewindow.load_games(filename)	
	
	def test(self):
		print "Mime Callback called"
